#!/usr/bin/env python
#coding=utf-8

import cmd, os
"""
命令行提示功能
"""
class HelloWord(cmd.Cmd):

	#修改命令行提示
	prompt = 'mingmings > '

	def do_great(self, line):
		print "hello", line

	def do_EOF(self, line):
		return True

	def do_pwd(self, line):
		os.popen('pwd').read()

	def do_cmd(self, line):
		print os.popen(line).read()

if __name__ == '__main__':
	h = HelloWord()
	h.cmdloop()